# SPDX-FileCopyrightText: Copyright 2022-2024 深圳市同心圆网络有限公司
# SPDX-License-Identifier: GPL-3.0-only

tags:
  - icmp
summary: 检查机器是否可达
description: 检查机器是否可达
operationId: "{{ uniqueOpId() }}"
requestBody:
  content:
    application/json:
      schema:
        type: object
        properties:
          token:
            type: string
            description: 访问令牌
          addr:
            type: string
            description: 目标地址
          pkgSize:
            type: integer
            description: 单个package的大小
responses:
  "200":
    description: 成功
    content:
      application/json:
        schema:
          type: object
          properties:
            success:
              type: boolean
              description: 是否收到回包
            rtt:
              type: integer
              description: 回包时间开销
  "500":
    description: 失败
    content:
      application/json:
        schema:
          $ref: "@schemas/errInfo.yml.njk"
